import ZbRequest from '../index'

export const login = (data) => ZbRequest.post('/user/login', data)

// export const getUser = (id) => ZbRequest.get('/user/' + id, {})
export const getUser = (data) => ZbRequest.get('/user', data)
export const updatetUser = (id, data) => ZbRequest.put('/user/' + id, data)

export const getCode = (data) => ZbRequest.get('/smscode/', data)
export const updatePhone = (data) => ZbRequest.post('/user/renew_phone', data)

export const updatePassword = (data) => ZbRequest.post('/user/renew_password', data)

export const getglbConfig = (data) => ZbRequest.get('/conf/load', data)

export const updateResetPassword = (data) => ZbRequest.post('/user/reset_password', data)
export const registPassword = (data) => ZbRequest.post('/user/regist', data)